package com.turbo.cloud.core.annotations.password;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

/**
 * 密码验证注解
 * @author zhangluning
 */
@Target({ElementType.FIELD,ElementType.TYPE,ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = PasswordConstraintValidator.class)
@Documented
public @interface ValidPassword {
    String message() default "密码复杂度过低";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
